package com.example.designmodule.chain;

/**
 * @Author: Dijah
 * @Date: 2023/3/4 11:20
 * @Desc: 客户端
 */
public class code6_client {
    public static void main(String[] args) {
        code1_LeaveRequest leave = new code1_LeaveRequest("二狗",5,"调休");
        code3_GroupLeader groupLeader = new code3_GroupLeader();
        code4_Manager manager = new code4_Manager();
        code5_GeneralManager generalManager = new code5_GeneralManager();
        groupLeader.setNextHandler(manager);//设置下一级
        manager.setNextHandler(generalManager);//设置下一级
        groupLeader.submit(leave);//提交
    }
}
